﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;
using System.Data;

namespace Data.DBOES
{
    [TableAttribute("RuongMuoiNha")]
    [Serializable]
    public class RuongMuoiNha : DBO<RuongMuoiNha>
    {
        private int? _IdRuongMuoiNha;
        [ColumnAttribute("IdRuongMuoiNha", SqlDbType.Int, 4, true, true, false)]
        public int? IdRuongMuoiNha
        {
            get { return _IdRuongMuoiNha; }
            set { _IdRuongMuoiNha = value; }
        }
        private DateTime? _NgayThang;
        [ColumnAttribute("NgayThang", SqlDbType.DateTime, 8, false, false, true)]
        public DateTime? NgayThang
        {
            get { return _NgayThang; }
            set { _NgayThang = value; }
        }
        private string _RuongMuoi;
        [ColumnAttribute("RuongMuoi", SqlDbType.NVarChar, 300, false, false, true)]
        public string RuongMuoi
        {
            get { return _RuongMuoi; }
            set { _RuongMuoi = value; }
        }
        private string _NguoiLam;
        [ColumnAttribute("NguoiLam", SqlDbType.NVarChar, 300, false, false, true)]
        public string NguoiLam
        {
            get { return _NguoiLam; }
            set { _NguoiLam = value; }
        }
        private string _SoXe;
        [ColumnAttribute("SoXe", SqlDbType.NVarChar, 50, false, false, true)]
        public string SoXe
        {
            get { return _SoXe; }
            set { _SoXe = value; }
        }
        private float? _SoLuong;
        [ColumnAttribute("SoLuong", SqlDbType.Float, 4, false, false, true)]
        public float? SoLuong
        {
            get { return _SoLuong; }
            set { _SoLuong = value; }
        }
        private float? _DonGia;
        [ColumnAttribute("DonGia", SqlDbType.Float, 4, false, false, true)]
        public float? DonGia
        {
            get { return _DonGia; }
            set { _DonGia = value; }
        }
        private float? _AnChia;
        [ColumnAttribute("AnChia", SqlDbType.Float, 4, false, false, true)]
        public float? AnChia
        {
            get { return _AnChia; }
            set { _AnChia = value; }
        }
        private string _NoiNhap;
        [ColumnAttribute("NoiNhap", SqlDbType.NVarChar, 300, false, false, true)]
        public string NoiNhap
        {
            get { return _NoiNhap; }
            set { _NoiNhap = value; }
        }
        private string _DienGiai;
        [ColumnAttribute("DienGiai", SqlDbType.NVarChar, -1, false, false, true)]
        public string DienGiai
        {
            get { return _DienGiai; }
            set { _DienGiai = value; }
        }
        private string _GhiChu;
        [ColumnAttribute("GhiChu", SqlDbType.NVarChar, -1, false, false, true)]
        public string GhiChu
        {
            get { return _GhiChu; }
            set { _GhiChu = value; }
        }
        private bool? _IsActive;
        [ColumnAttribute("IsActive", SqlDbType.Bit, 1, false, false, true)]
        public bool? IsActive
        {
            get { return _IsActive; }
            set { _IsActive = value; }
        }
         public RuongMuoiNha()
        { }
        public RuongMuoiNha(int? IdRuongMuoiNha)
        {
            this.IdRuongMuoiNha = IdRuongMuoiNha;
        }
        public RuongMuoiNha(int? IdRuongMuoiNha,DateTime? NgayThang,string RuongMuoi,string NguoiLam,string SoXe,float? SoLuong,float? DonGia,float? AnChia,string NoiNhap,string DienGiai,string GhiChu,bool? IsActive)
        {
            this.IdRuongMuoiNha=IdRuongMuoiNha;
            this.NgayThang = NgayThang;
            this.RuongMuoi = RuongMuoi;
            this.NguoiLam = NguoiLam;
            this.SoXe = SoXe;
            this.SoLuong = SoLuong;
            this.DonGia = DonGia;
            this.AnChia = AnChia;
            this.NoiNhap = NoiNhap;
            this.DienGiai = DienGiai;
            this.GhiChu = GhiChu;
            this.IsActive = IsActive;


        }
    }
}
